var mongodb = require('mongodb')

mongodb.MongoClient.connect('mongodb://localhost:27017/stock', function (err, mongoclient) {
  if (!err) {
    var db = mongoclient.db('stock')

    console.time('time:')
    db.collection('SH000003').find({open: 347.76}, {limit: 1000}).toArray(function(err, doc) {
      console.log(doc)
      db.close();
      console.timeEnd('time:')
    })
  }
})
